package util.web.mailing;

import javax.mail.Authenticator;
import javax.mail.PasswordAuthentication;

/**
 * 
 * @author jinyi
 *
 */
public class PasswordAuthenticator extends Authenticator {
    private String username;
    private String password;
    public PasswordAuthenticator(String username, String password) {
        this.username = username;
        this.password = password;
    }
    protected PasswordAuthentication getPasswordAuthentication() {
        return new PasswordAuthentication(username, password);
    }
}